<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录即可做任务</title>
    <link rel="stylesheet" type="text/css" href="public/css/index.css">
	<script src="public/sweealert/sweetalert.min.js"></script> 
	<script src="public/js/jquery-1.8.0.js"></script>
    <link rel="stylesheet" href="public/sweealert/sweetalert.css"> 
</head>
<body>
   <div class="zhe"><!--遮罩层-->
       <div class="warb"><!--外层-->
         <div class="top-bg">
           <form id="formbd">
             <input class="textinput" type="text" name="username" placeholder="用户名(数字，字母，下划线)" id="louser"/>
             <input class="textinput" type="text" name="password" placeholder="密码" id="lopwd"/>
               <a href="javascript:loginsub();" class="lobtn" id="loginBtn">登录</a>
               <a href="regist.php" class="re">注册</a>
               <a href="javascript:;" class="forget">忘记密码?</a>
           </form>
         </div>
       </div>
   </div>
</body>
<script>
    function loginsub(){
           var str=$("#louser").val();
            if($("#louser").val()==""){
                     swal("No", "请输入用户名!", "error");
            }else if($("#lopwd").val()==""){
                swal("No", "请输入密码", "error");
            }else{

        }
    }
    </script>
</html>

